<h2>Submit solution</h2>
<form action="<?php WEBROOT()?>/submissions/confirm" method="post" enctype="multipart/form-data">
<?php if(isset($submit_error)):?>
	<div class="error">
<?php 
switch ($submit_error) {
	case 1: echo 'Please specify the task for solution'; break;
	case 2: echo 'Please specify the language, or the system did no understand your specification'; break;
	case 3: echo 'You did not choose file, or the file was not uploaded correctly.'; break;
	case 4: echo 'File size exceed 200KB limitation.'; break;
	case 5: echo 'Server error - plaese contact administrator.'; break;
}
?>
	</div>
<?php endif?>
	<div class="page-detail">
		<p>
			You have to specify the language and task your solution is wrote for. It must be in this format:
		</p>
		<pre>
/*<br />
LANG: C<br />
TASK: a+b<br />
*/
		</pre>
		<p>
			... for C language and
		</p>
		<pre>
/*<br />
LANG: C++<br />
TASK: a+b<br />
*/
		</pre>
		<p>
			... for C++ language. The task name can be view in the first column in task page.
		</p>
	</div>
	<input type="hidden" name="MAX_FILE_SIZE" value="204800" />
	<div class="form-item">
		<label for="a">Source code*</label>
		<input type="file" class="title" style="width:100%" name="a" id="a" />
		<p>* Maximum size 200KB</p>
	</div>
	<div class="form-item">
		<input type="submit" name="op" id="op" value="Submit" />
	</div>
</form>
